import fs from "fs-extra";
import chalk from "chalk";

export const removeFilePath = async function (filePath) {
	return new Promise((resolve, reject) => {
		fs.remove(filePath, (err) => {
			if (err) return reject(err);
			console.log(
				chalk.green.bold("Done!"),
				chalk.yellow.bold("开始构建")
			);
			resolve();
		});
	});
};
